import {getCusNameOptions} from "@/api/options/options";

export default {
  data() {
    return {
      // 客户名称的options
      customerNameOptions: [],
    };
  },
  methods: {
    /**
     * 获取客户名称的options
     * @returns {Promise<void>}
     */
    async getCustomerNameOptions() {
      const response = await getCusNameOptions();
      this.customerNameOptions = response.data;
    }
  },
  created() {
    // 获取客户名称的options
    this.getCustomerNameOptions();
  },
};
